<div style="display: none">{include file="header.html"}</div>
<link href="/admin/templates/style/admin.css" rel="stylesheet" type="text/css" />
<script type="text/javascript">

</script>

<style>
    .infoTable label {
        color: #444;
    }

    html, body {
        background: #fff;
    }

    .infoTable {
        width: 100%;
    }

    .info th {
        text-align: right;
        padding-left: 40px;
        width: inherit;
    }

    .info td {
        font-size: 14px
    }

    .info {
        margin: 0;
    }
</style>

<div class="info">

    <form method="post" enctype="multipart/form-data" action="index.php?app=waybill&act=hauledit">
        <input type="hidden" value="{$waybill.wm_tid}" name="wm_tid">
        {foreach from=$haullist item=h}
        <div class="jui-cut-label fn-mt25">
            <div class="jui-message-bar">运程信息<span style="float:right;color:red;">{if $h.h_finished==0}未开始{/if}{if $h.h_finished==-1}异常{/if}{if $h.h_finished==2}完成{/if}</span>
            </div>
        </div>

        <div style="">
            <table class="infoTable">
                <tr>
                    <th class="paddingT15">运程:</th>
                    <td class="paddingT15 wordSpacing5">
                        {$h.h_name}

                        <input type="hidden" name="haul[{$h.h_tid}][h_tid]" value="{$h.h_tid}"/>
                    </td>

                    <th class="paddingT15">运单号:
                    </th>

                    <td class="paddingT15 wordSpacing5"><a
                            href="index.php?app=waybill&amp;act=view&amp;id={$h.h_wmtid}">{$h.wm_code|escape}</a></td>
                </tr>
                <tr>

                    <th class="paddingT15">联系人:
                    </th>

                    <td class="paddingT15 wordSpacing5">{$h.h_linkman}</td>
                    <th class="paddingT15">电话:
                    </th>
                    <td class="paddingT15 wordSpacing5">{$h.h_linkman_tel}</td>
                </tr>
                <tr>
                    <th class="paddingT15">确认类型:
                    </th>
                    <td class="paddingT15 wordSpacing5">{$typelist[$h.h_type]}
                    </td>
                    <th class="paddingT15">要求时间:</th>
                    <td class="paddingT15 wordSpacing5">
                        {if $h.h_required_service_date}{$h.h_required_service_date|date:Y-m-d H:i}{else}-{/if}
                    </td>
                </tr>

                <tr>
                    <th class="paddingT15">要求:</th>
                    <td class="paddingT15 wordSpacing5">
                        {$h.h_note}
                    </td>
                    <th class="paddingT15">完成时间:</th>
                    <td class="paddingT15 wordSpacing5">
                        {if $h.h_finished_date}{$h.h_finished_date|date:Y-m-d H:i}{if $h.h_finished_date-$h.h_required_service_date>0}<span style="color:red;"> 晚点</span>{/if}{/if}
                    </td>
                </tr>
                <tr>
                    <th class="paddingT15">地址:</th>
                    <td class="paddingT15 wordSpacing5" colspan="3">
                        {$h.h_address}
                    </td>
                </tr>
            </table>
            <div style="background: #f3f7fa;padding: 20px 0 20px 100px" class="itemdiv">
                {foreach from=$h.item item=i name=it}
                <div style="padding: 15px 0;border-bottom: 1px solid #d3dae0">
                    <input type="hidden" name="haul[{$h.h_tid}][item][{$i.hc_tid}][hc_tid]" value="{$i.hc_tid}"/>
                    <span style="background: #ccccce;display: block;padding: 8px 12px;float: left">{$smarty.foreach.it.iteration}</span>
                    {if $h.h_finished<2}
                    <p style="float: left;margin: 0 40px">操作：{$ctype[$i.h_collect_type]}</p>
                    <p style="float: left;margin: 0 40px">说明：{$i.h_collect_des}</p>
                    {else}
                    <p style="float: left;margin: 0 40px">
                        {if $i.h_collect_type==0}扫描{/if}
                        {if $i.h_collect_type==1}输入{/if}
                        {if $i.h_collect_type==2}数字输入{/if}
                        {if $i.h_collect_type==3}拍照{/if}
                        {if $i.h_collect_type==4}录音{/if}
                    </p>
                    <p style="float: left;margin: 0 40px">{$i.h_collect_des}</p>
                    {if $i.h_collect_type<3}
                    <p style="float: left;margin: 0 40px">{$i.h_collect_val}</p>
                    {/if}
                    {if $i.h_collect_type==3&&$i.ar!=null}
                    {foreach from=$i.ar item=a}
                    <a href="{$site_url}/{$a}" target="_blank"><img src="{$site_url}/{$a}"
                                                                    style="height:100px;width:100px"/></a>
                    {/foreach}
                    {/if}

                    {if $i.h_collect_type==4&&$i.ar!=null}
                    {foreach from=$i.ar item=a}
                    <audio controls="controls">

                        <source src="{$site_url}/{$a}" type="audio/ogg">

                        你的浏览器太老了，请更新否则没法听语音
                    </audio>
                    {/foreach}
                    {/if}
                    {/if}
                    <div style="clear: both"></div>
                </div>
                {/foreach}
                <div style="clear: both"></div>
            </div>
        </div>
        {/foreach}

    </form>

</div>